<template>
	<view class="orderDetail">
		<view class="map">
			<map :style="'width: 100%;height:'+mapHeight+'px;'"></map>
		</view>
		<view class="orderInfo">
			<view class='orderStatus'>
				<view class="showStatus dFlex jBetween_aCenter">
					<text>订单已完整</text>
					<view class="statusImg imgPublic">
						<image src="../static/images/ywc.png" mode="widthFix"></image>
					</view>
				</view>
				<view class="orderTime">已于2024.07.01 24:00之前送达</view>
			</view>
			<view class="transport">
				<view class="show_title dFlex jBetween_aCenter">
					<text>订单信息</text>
					<view class="allPrice">订单总价 ¥1000.00</view>
				</view>
				<view class="config">
					<view class="time dFlex jStart_aCenter">
						<u-icon name="clock-fill" color='#999999'></u-icon>
						<view class="showTime">2024.06.27-2024.07.01</view>
					</view>
					<view class="address dFlex jStart_aCenter qi">
						<view class="addIcon blue">起</view>
						<view class="addInfo">山东省临沂市兰山区朗润园18号</view>
					</view>
					<view class="address dFlex jStart_aCenter">
						<view class="addIcon orange">终</view>
						<view class="addInfo">山东省临沂市兰山区朗润园18号</view>
					</view>
				</view>
				<view class="info">
					<view class="line1 dFlex jBetween_aCenter">
						<text>行程编号</text>
						<view class="val">10.00吨</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>货物名称</text>
						<view class="val">10.00吨</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>货物重量</text>
						<view class="val">未被承运</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>承运情况</text>
						<view class="val">未被承运</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>货车类型</text>
						<view class="val">未被承运</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>行程备注</text>
						<view class="val">未被承运</view>
					</view>
				</view>
			</view>
			<!-- 货主 -->
			<view class="huozhu">
				<view class="hzInfo dFlex jStart_aCenter">
					<view class="hzTx imgPublic">
						<image src="../static/logo.png" mode="widthFix"></image>
					</view>
					<view class="info">
						<view class="user"> <text>张目</text> <text>个人货主</text> </view>
						<view class="time">6年用户 · 昨天活跃</view>
					</view>
				</view>
			</view>
			<view class="bj">
				<view class="bjTit dFlex jBetween_aCenter">
					<text>报价情况</text>
					<!-- 货主身份显示 -->
					<u-icon name="arrow-right" label='报价记录' labelPos='left' labelSize='12px'></u-icon>
				</view>
				<view class="info">
					<view class="line1 dFlex jBetween_aCenter">
						<text>报价人数</text>
						<view class="val">10.00吨</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>最低报价</text>
						<view class="val">未被承运</view>
					</view>
					<view class="line1 dFlex jBetween_aCenter">
						<text>我的报价</text>
						<view class="val">未被承运</view>
					</view>
				</view>
			</view>
			<!-- 车主 -->
			<view class="bj">
				<view class="bjTit">信息费用</view>
				<view class="info">
					<view class="line1 dFlex jBetween_aCenter">
						<text>已支付</text>
						<view class="val">100元</view>
					</view>
				</view>
			</view>
		</view>
		<view class="seat"></view>
		<view class="seat"></view>
		<view class="btns dFlex jAround_aCenter" :style="{
			'padding-bottom':isIos ? 'env(safe-area-inset-bottom)' : '12px'
		}">
			<!-- 报价中 -->
			<!-- <view class="btn len1 sty1">联系货主</view> -->
			<!-- 已完成状态 <view class="btn len1 sty1">联系车主</view>  -->
			<!-- 车主 -->
			<view class="btn len2 sty1">联系货主</view>
			<!-- 货主 -->
			<view class="btn len2 sty1">联系车主</view>
			<view class="btn len2 sty1">修改出价</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mapHeight: uni.getSystemInfoSync().windowWidth,
				isIos:getApp().globalData.isIos,
			};
		}
	}
</script>

<style lang="scss">
	.orderDetail {
		.btns{
			.btn{
				width:100%;
				padding: 10px 0;
				border-radius: 4px;
				text-align: center;
				border:1px solid #f6f6f6;
			}
			.len1{
				width: 100%;
			}
			.len2{
				width:45%;
			}
			.sty1{
				color: white;
				background: #0087FC;
				border-color: #0087FC;
			}
			.sty2{
				background: white;
				border-color: rgba(0, 0, 0, 0.2);
				color: #999999;
			}
			width:100%;
			position: fixed;
			left:0;
			bottom: 0;
			padding: 12px;
			box-sizing: border-box;
		}
		.bj{
			.bjTit{
				font-size: 16px;
			}
			.info {
				.line1 {
					width: 100%;
					margin-bottom: 8px;
					color: #666666;
					.val {
						color: #222222;
					}
				}
				width: 100%;
				padding: 10px 0 0;
			}
			width: 100%;
			padding: 12px;
			box-sizing: border-box;
			background: white;
			margin-bottom: 12px;
		}
		.huozhu{
			.hzInfo{
				.info{
					.time{
						font-size: 12px;
						color: #999999;
						margin-top: 3px;
					}
				}
				.hzTx{
					width:40px;
					height:40px;
					border-radius: 50%;
					margin-right: 12px;
				}
				width: 100%;
			}
			width: 100%;
			margin: 12px auto;
			padding: 12px;
			box-sizing: border-box;
			background: white;
		}
		.transport {
			.info {
				.line1 {
					width: 100%;
					margin-bottom: 8px;
					color: #666666;
					.val {
						color: #222222;
					}
				}
				width: 100%;
				padding: 10px 0;
			}
			.config {
				.address {
					.addIcon {
						width: 14.8px;
						height: 14.8px;
						border-radius: 50%;
						color: white;
						text-align: center;
						line-height: 14.8px;
						font-size: 8px;
						margin-right: 8px;
					}
					.blue {
						background: #0087FC;
					}
					.orange {
						background: #ff4816;
					}
					width: 100%;
					color: #000033;
				}
				.qi {
					margin: 8px 0;
				}
				.time {
					font-size: 12px;
					color: #999999;

					.showTime {
						margin-left: 8px;
					}
				}
				width: 100%;
				padding: 10px 0;
				border-bottom: 1px solid #EEEEEE;
			}
			.show_title {
				.allPrice {
					font-size: 14px;
				}
				width:100%;
				font-size: 16px;
				border-bottom: 1px solid #EEEEEE;
				padding: 12px 0;
			}
			width:100%;
			background: white;
			padding: 0 12px;
			box-sizing: border-box;
		}
		.orderInfo {
			.orderStatus {
				.orderTime {
					font-size: 13px;
					color: #666666;
					margin-top: 10px;
				}

				.showStatus {
					.statusImg {
						width: 44px;
					}

					width: 100%;
					font-size: 18px;
					color: #20202E;
					font-weight: bold;
				}
				width: 100%;
				padding: 20px 12px;
				box-sizing: border-box;
				background: white;
				margin-bottom: 12px;
			}
			width: 100%;
		}

		width: 100%;
	}
</style>